package com.example.fundappcation.Base;

import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.DialogFragment;
import androidx.fragment.app.FragmentManager;


import org.jetbrains.annotations.NotNull;

public class BaseDialog extends DialogFragment {

    @NonNull
    @NotNull
    @Override
    public Dialog onCreateDialog(@Nullable @org.jetbrains.annotations.Nullable Bundle savedInstanceState) {
        return super.onCreateDialog(savedInstanceState);
    }


    /**
     * 显示dialog
     * @param manager 管理器
     * @param tag 标记
     */
    @Override
    public void showNow(@NonNull @NotNull FragmentManager manager, @Nullable @org.jetbrains.annotations.Nullable String tag) {
        super.showNow(manager, tag);
    }

    /**
     *
     * @param showsDialog 显示当前dialog
     */
    @Override
    public void setShowsDialog(boolean showsDialog) {
        super.setShowsDialog(showsDialog);
    }

    /**
     *
     * @param cancelable 设置是否可以取消
     */
    @Override
    public void setCancelable(boolean cancelable) {
        super.setCancelable(cancelable);
    }

    /**
     *
     * @param dialog 关闭dialog
     */
    @Override
    public void onDismiss(@NonNull @NotNull DialogInterface dialog) {
        super.onDismiss(dialog);
    }

    /**
     * 不再持有Activity/Fragment对象
     *
     */
    @Override
    public void onDetach() {
        super.onDetach();
    }

    /**
     * 销毁视图
     */
    @Override
    public void onDestroyView() {
        super.onDestroyView();
    }



}
